package com.ts.proj.controller;

import com.ts.base.controller.BaseController;
import com.ts.util.JurisdictionUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class FrameController extends BaseController {

    @RequestMapping(value = "/uploadSolution")
    public ModelAndView uploadSolution(){
        ModelAndView mv = this.getModelAndView();
        String viewName = "login";
        if(JurisdictionUtil.isValid()){
            viewName = "frame/uploadSolution";
        }
        mv.setViewName(viewName);
        return mv;
    }
}
